get_data function

Read values stored in a bedrockdb.