Added comments to databasemanager