save post data to DB