Updated the db connection.

This way might be more secure. I have no idea whether or not that's true.