uncomment out Restore-TailLogBackups, remove subroutines and put in sharedDBfunctions