swap database