Copy of jruby/perfer using a DB-based persistence