Groundwork for session cookie and postgres database.