Improved some comments. No functional changes.
Changed so can also work for web database.