DJR:Expanded text fields
DJR:Added MySQL error checking