Implemented the database with quiz engine