Make sure title is valid when adding it to index
Compact and reindex database api calls