Helper code for using Sidekiq with Postgres. Extracted from our production code.