Change size of commits to avoid deadlocks and do a set synchronous_commit to off in all postgresql sessions