bug fix in DB.pm