add spring for dependency injection and to automatically call datastore.close