refactored a whole lot of things
added EntityManager, added Repository
TODO findAll()
mplemented findAll()