Add postgresql compatibility
Merge pull request #2 from disconn3ct/master

Add postgresql compatibility