Support no auth for get_database.