TSP-4459 Database synchronization script