Basic functionality for Db from ex 3_4