minor changes
changed rule uploads to go to a directory and update database with path