Fix COALESCE

Without this, the DB cannot be upgraded (something like COALESCE function doesn't exist, sorry, I haven't kept a copy of the exact error message).