changed query for getting db users joomla