Finish postgresql migration, fix rvm