Fix authorization error in creating database