Change DB code to use MongoDB.Val typeclass