Separated datastore.go into separate files.