Small db changes

Small changes for the database connection, and added a few comments