Update logic.js

copied from mean.
added init, setKbz.
changed db address to address meteor DB.