v2.0 interface

generalized db and added authorization