Generation of headers in the database