fix fallback to legacy index creation

This change was necessary because of changes to how database commands
now throw errors.