database adapter fix