update key db