tiny mod of DB query