added logic so server doesnt crash if question that doesnt exist in db is queried from browser