fixed database pb