fixed database mistake