one more fix for db query