added script to run sql, move files and add headers