adding db_connector() function.
Merge pull request #1 from nickreich/master

adding db_connector() function.