Updated SQL Script and xHTML forms

Updated SQL Script and xHTML forms