Merge pull request #1742 from emanuele45/fix

Broken db_add_index in postgre
Wrong key

Signed-off-by: emanuele <emanuele45@gmail.com>
Make the header more flexible for customizations

Signed-off-by: emanuele <emanuele45@gmail.com>
Another spot of callbacks in the news area

Signed-off-by: emanuele <emanuele45@gmail.com>
And set up a function to call the callbacks all the same way

Signed-off-by: emanuele <emanuele45@gmail.com>