Added postgres compatibility
Merge pull request #11 from kitan1982/postgres-compatibility

Added postgres compatibility