create a file sql, for backup