UI tweaks and mysql debugging