added scalar queries to repositories