don't execute invalid sql if no repos found