fixed database trick