Writing to Remote Database Test and Fix