changed database swap provider to use resource attributes