fixes #25 - dbname check always fails