Rename _buildQuery to query().

Having the method be both public and have a shorter name makes creating
insert, update and delete queries easier.
Merge pull request #2549 from markstory/3.0-table-query

3.0 - Rename _buildQuery to query().