update versions Ruby and Rails and adding new database - PostgreSQL

little not understand, your comment. Pls write clearly, what to do