marge sql script