epicodus assignment in ruby with database