1. Fixed issues opened in Github 2. Re-factored to use methods in SharedFunction

1. Issues fixed - maintenance file formatting + modify the AMS config
setting 'useStoredProcedureForCreateAndCopyEvent'
2. Re-factoring changes.
3. Adding a new step - 2b where we need take backups for missed
databases.