Moved the PostgreSQL permissions fix into the first_run.sh script since it doesn't appear to work otherwise.
Found a workaround to the idle_timeout problem.  It now updates that value in the foreman DB immediately after the foreman db is reset.