db inserts working