rolled back modifications for the database connection function
Still using the function, but couldn't figure out how to test it
Merge branch 'master' of https://github.com/arzhed/snapgram