At the end of the restoration the databases are automatically mounted and caught up,can we automatically mounted without catch up in this step?

how can I write my own program to replace ^ DBREST and avoid using the automatic mount method in DBREST, as that mount method uses default values