fixed db connection issues and update ENV variables