converted sql to postgres
added ruby v 2.1.0