Adding comments to explain DB constructor and all methods called from inside DB constructor