fixed database profile issue