Store uploaded files in the database