Bug self.dbname instead of self.name when db name is given as param