begin writing drm database code.