Updated APIs to match document structure in testing server. Added comments...

Merged Ian Foster requested to merge api into develop

Updated APIs to match document structure in testing server. Added comments within database queries file

Merge request reports