SQL and Ruby integration project