Add comments to DatabaseActivity. Remove debug statements.