escaped $ in build.xml
added a small database protection
fixed some reload issues