API refactoring: Query select, foreach methods removed, apply method returns Result, toListOfVectors method added to Result. Insert expression returns affected row count as before and id if IdExpr is used in values clause