check if the database exists before we try to backup it