A PostgreSQL adapter for livedb