add null to db query