Type-safe insert and update statements