catch get security groups mysql error
fix getPreference on /manage_main issue

temporaly fix