registration api (#303)
database agnostic cleanup query
document unused field through the api