postgres commands added

* Swtiched to Pytest
* Tests revamped to mock out subprocess and env variables
* postgres functionality added to delete, add, and update functions
would probably format htis one
```
assert  ' '.join(mock_call.call_args[0][0]) == ' '.join([
    'curl', ..., ...,
])
```