Remove table query repository