add echo service and support for external db host