simplify statement creation
do not serialize statements

There seems to be no need.
split statement and binding for better readability
remove unnecessary clause
pass paths in