fix database registration error