Revert "Switch to v2 sqlite interface in base_init and base_close"

This reverts commit f516b56e97f2c97f07037fd54169a5d010d6e318.

Conflicts:
	base.c