Admin controller bugfix query
Admin controller bugfix query

There were some remaining bugs made by refactoring querying and db handling.

MarekSuchanek/repocribro,MarekSuchanek/repocribro,MarekSuchanek/repocribro