feat(core): implement database connection
fix(core): put X-check old way back
fix(core): add more X-checks
release(core): bump version