factor out db to javelin (done badly at moment - need to move to maven
dependancy) and started to code basic app manager