Adding functionality

Including jQuery UI for Dialog boxes. Fixing MySQL-class functionality.