Update regex queries for pgsql in anidb.