createIndex moved to a helper class
add ConnectionResource for Web