Move api over to datastore from ES.