Finished  Repository pattern and Unit of work, also fixed tables in db