Complete order entity

Add order entity and dao implementation.
Order changes.

Add orders dao tests and some fixes to orders entity.