migrator/prosody_sql.lua: Fix for compatibility with non-MySQL databases