Add datastore facilities.
Add utils. Transfer the methods of model to global functions.