Impleament queries - Adds Queries and handlers refactors repository.