Ensure that any RecordJob clears active db connections

This ensures that after performing a ActiveRecord job any active
connections are put back in ActiveRecord's connection pool for the
next RecordJob that comes along.