Setting up a high-availability database with replicated storage