User preferences with schools
Generates SQL query based on selection from form.html