updated file uploads. added entry post insert and update. added existing file checks.