Getting endpoints from config-service and options from postgres options.