added a check to prevent NoSuchMethodException from being thrown
added option to enable CORS and change the discovery mechanism for Elasticsearch
create the default table on startup