Cleaned up the sql as the apostrophese were breaking the sql side, and
had to replace all ' with ''.  Also fixed other bugs and put in xml
input types for all numbers