free up activerecord connections after requests