fixed query composer for translating id's to ObjectId