Update db and config