Added some comment for database updates.
Improved the check scripts function
Some minor comment changes