add very simple interface for pulling defs from db
add basic docs of db