Updates to make database connection work

Updates made