You can do in 2 approch either you change the query where you inserting the data in one datebase at the same time you save the data in different database
2nd one in code behind you change the connection string 2 times for insert data in 2 different database
INSERT INTO
db1.myTbl(value)
INSERT INTO
db2.myTbl(value)