All collection insert and query routines implemented. Reference data model is constructed. Next: Work on return format for user and collection apis