update db and routing