update the layout of functions in the page.py file.

removed quotation marks around %s variables in the sql calls of the main sequence
since they were causing the strings to actually have additional quotes around them
when forms are submitted through the web form.