basic insert/update working