If None comes back from the database, pass it along as a "" so it it doesnt raise an exception killing the task. Add some logging too.
Elasticsearch must be started now before outage cleared. Ensure socket directory is in place during first start.