login renamed to email

and add description of queries