Changed the sql script