implemented CRUD in entity repository. closes #11