Fix SQL query for updating file size