get some hacky code to insert WFs into db working