style
Dcoument the API
tweak db lock and erase