Converted Mahana model to use entirely Query builder

And also made a little improvement to the message overview page view.