Update the API to correct parameter name

The parameter name was incorrectly mentioned as dbname