Implemented OrdersService.
Resolved issues on accessing database.