fixed database eror but path issues now