Broken db_add_index in postgre

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1742 from emanuele45/fix

Broken db_add_index in postgre