added entities and database schema
added a pagination