Dirty hack to avoid maxing out pgsql connections.