restructure database, build in examples of use