create and populate a database for btree