remove db and resource