API updates for db inserts