form values ready for query