Add postgresql support

Added PostgreSQL support