Refactoring warden_cpi to remove db migrations