Extracted the common functionality that can be shared by main site and subsite database upgrade.
Merge branch 'master' of github.com:atutor/ATutor