prepare all DML queries