Basic query manager