I just figured out that the problem seems to be with the fact that the cdb file allready exists on the pda. If I delete it, it works fine, also if I set the flag not to replace the database. Then I am asked to confirm if I want to replace database. But I can't get it to work, to replace it with out asking the user.