bugfix in db\connection