Add a new file into the database.