add http redirect nginx and update trends for postgres