fixed db binding
converted frontend to coffeescript
reorg jade and routes