fix error, add sql file (local & live)