fixed database prob