Added Dao, services, and a lot more stuff

This is the first part, so far I don't include the whole logic, hence on the next pull should be completed the logic.