Create separate function to set filesize in database; clear stat cache more often