class for simple work with joomla database