Re-worked database connection due to database modifications.