Replacing insertLog method with an in place create