How can I retrieve values from one database server and store them in other database server using PHP?