simplify SQL command construction