Using Mysql DB as security provider