fixed database use