Add elasticsearch with postgresql as example