initialization should now successfully close both database connection and itself after initializing data.