Integrated MySQL as Shiro realm for authentication.