Update the API to correct parameter name

The parameter name was incorrectly mentioned as dbname
Merge #91 (Thanks @agnivade)

Update the API to correct parameter name