provide sql query documentation and some examples of how to setup a user to provide acces in the required databases