PostgreSQL backend for the Entity library