Control the Access to MySql Database