dbtest added, secure cookie added(similar to Tornado)