Querying record database using path and value.