queries helper and gitingnore