updating the site url and db