update build system to play 2.2, update js code, set db connection