Add replace-sourcedb when needed