Added tools to build Sample database and composite samples