You can create and add files to the database all in one command. For example:
undjava -db myproject.udj -create -add *.java