If you can’t get the post value then either it is not set or you’re trying to get it at the wrong time.
When are you trying to get this value to put into the other DB? When is this code run? Will need more information on when and how you are trying to do this.