Added inserts. Will need to validate these bigtime, but at least it works now, right?