fixes #25 - dbname check always fails

@twobraids r?