intial contrib

create config style db init, thus specifing dynamic lib for cffi
some initial impl on cursor