Swap db and db-slave