minor edits and included new sql file