Fix bug in repositesetup:sql_database_exists()