Added PostgreSQL support (untested)