Scala database class project