Fixed minor bugs and comment wording

Was using wrong getter for db connections
Forgot to release a db connection if an exception occured
Configured logging levels for various messages