Added comments to database and myHistory

Added remote database functionality to database