Implemented new database connection class