adds postgres config; fixes cleanup task; upgrades es