Add formats to the database