Determining the Composition of Collections for Key-Document Databases Based on a Given Set of Object Properties and Database Querie