added if exits in sql file