Add PostgreSQL support (edge standalone)

I have added PostgreSQL >= 8.1 support.