replaced Nette\Database\Connection with Nette\Database\SelectionFactory