update to database keys