Add custom queries for repositories.