MT#7053 add database name to the queries. Use auth_sql prosody config.