Save file in database.