Contains and fetchval functions added.