Creating schema for MongoDB query creation