fixed problem in DB.scala