adding stats sql script