Use callbacks in ensure process
Use callback when db is loaded
Use built-in assert features
Build