implemented entity classes using doctrine ORM for DB communication. closes #5