Fix deprecation: insert_sql is deprecated and will be removed See merge request gitlab-org/gitlab-ce!23944