use vals for the TableQuery instances