refactored datastore: made helper methods private using the leading underscore method.