Slightly more verbose error message
Cleaned up RPC/DB API; close queries, factor common ops
._decode_coef returns numpy array