[aur-dev][PATCH 3/3] rewrite query to support both mysql/sqlite