made an insert fxn that also returns the id