db working//issues on frontend