random routing working with QuerySet and no SQL commands, fixed bugs