add capfile and change database