[BugFix] Added 'if not exists'-check for table index