server working with the sql database except for weird bug with the image