Add local db variable for querying