ruby and sql solutions initial