fixed the inserts

now populates the tables properly, problem was spelling errors and
reference problems LOL