adding script to build database and sample documents. Incomplete.