JQuery based UI for database queries