Query not retuning document