I am looking for some documentation on connectiong to do the following:

I am wanting to connect to a database, do some SQL, use the result from the SQL. I am tired of using file I/O all the time. Let me know. Thanks.