wrap all connection calls with with_connection