Adding more Database Functions

Description: Adding some more database functions to help data load.
The model Workday was also changed to facilitate these changes.
Adding also new test to certify correctness of new functions.

Commit: Add

TaskNumber:#2