postgres commands added

* Swtiched to Pytest
* Tests revamped to mock out subprocess and env variables
* postgres functionality added to delete, add, and update functions
I'd format this like

cmd = [
    'curl', ..., ...,
]