Add the ability to have a where clause in QDB and the registrationModel uses this functionality