Finished code for inserts, need to test now