fixed database handles