Generic SQL Library

Need a couple of generic calls to talk to the database. They can be used for any schema.

# Log in to database.
$status = login()

# Log out of database.
$status = logout()

# Select information from database.
@data = sql_select($sql)

# Update information in database.
$result = sql_update($sql)

# Insert information into the database.
$result = sql_insert($sql)

# Insert information into the database, return identity.
$identity = sql_identity($sql)

# Generic SQL call

# Break data into an array
@data = sql_split($data)