adding db write functionality examples to server.js and jadeHandler