Finished database and database handler class