Make some refactoring.

Add two entities, sql scripts on create, dao classes.
Start working on tests