add sql script by mike