Added reference data model within database module and implemented set of tests for functionality of existing routines