refactored repositories, added base POCO entities