rename the main as insertDate