Fix: do not pass File object to database.