create initial worker function createRecord