First attempt at a querying api for the oil library