Refactor test insert code to use the db.col.insert() function.