Added insert and update helpers as SQL.