add region
fix db scoping
handle error