Practice using SQL queries with ruby