insertion and basic query working