Merge pull request #5 from kkrumlian/flatify

postgres implementation & authorization service enhancement