Verified all functions

all queries verified as working