Secured mysql connect