Added ability to require auth headers.
Switching to postgres