Unfinished authenticate
Merge pull request #3 from JulesWiz/postgres

Unfinished authenticate