initial model/database layout + scan script