DB class: insert/update, Validate

I'm really, really, really rusty.