uppdated config, database to respond to live/loval environment