add Postgresql support
Merge pull request #2 from ChinaXing/master

The support of Postgresql has completed.