Some fixes/enhancements

- enable passing db instance to let mojo use an existing connection
- don't ignore complete error from