updated form with grid control, message area, and sql input field