Re-adding this comment, think it was lost in rebase.  @jistr noticed that sql_connection appears deprecated and replaced by $connection, so I think we only need the one line here