added jqueryUI. fixed global variables
database queries completed.

just need to check for errors.