Introduction to postgres databases with ruby scripts