add capdb, copy from example