Adding PostgreSQL magic.