after long running connections postgresql takes lots of RAM, now reconnect every 20k cycles