Using Mongo certainly didn't help, we're in the same situation ourselves and having various regrets over different aspects of it...
What do you use to interface with SQL on the Scala side? Squeryl?
What do you use to interface with SQL on the Scala side? Squeryl?
Another thing that helped was to use underscore_naming for any case-class in Scala that maps directly to a query, so it's easier to identify them.
I'm thinking it's a total potential for exploit on web apps backed by mongodb and any dynamic language.