Initial commit of tests for database controller. Need to port tests to JSON structure.