when a key exists, update it instead of whining
move some database checks off the hot path
let's size up sqlite and sqlce