logging info to err and hooking callback for db close
0.2.3 minor fixes