fixed sql files