transaction helper
pass for_update to sql builder