Using PostgreSQL instead of Elasticsearch for traces

Small developer guide. Might be useful for some developers out there.