porting app to mojit 0.9, passing db around