Change formatting of SQLs in auth provider.