swap database to online