fixed db_connect
Merge pull request #19 from uptownjimmy/databasetweaks

fixed db_connect