Extended database class for Kohana 3