Sorted out inserting stuff without having to write an INSERT query.