Commit before switching to postgresql