Add missing insert code for post submission