created basic class Entity and set up database schema