adding datastore inherited classes and entity api for process and packaging of db queries