Update database for storage