MySQL builder class for constructing queries and retrieving results using simple PHP arrays