updated rails and switch to postgres