Fix database-level permission bug by quoting slashes in db names