remove db dependency, cookie session, working in jruby