Modifying database connection