remax14-67 Changing DB query functionality