CDB-4240 Prepared some indexes, renamed others if exists and removal of unneed constant
Merge pull request #882 from CartoDB/CDB-4240

CDB-4240 Check indexes on all Metadata tables