fixes #25 - dbname check always fails

@twobraids r?
I don't think anyone is interested in overriding the function.