updated logging

handled file not found
added a backup database storage of match and rejected logs