Form is working; added checks to Queries controller so that we don't call the function if a similar query already exists in the db -- MVP reached