Update DatabaseFactory.cs

Added code comments which help building help document. If approved I will add comments for other files also.