Cast varchar date fields to int when selecting from the database (see #5503)
Adjust the default list of allowed download file types (see #5515)