init db in background; modify config activity.