modify selection db query