Update DB states