Comparing Ruby time with SQL time

Hi --