initial import from play distribution
Reimplemented to use reactive-couch instead of jdbc