modified makefile and fixed query