initial setting up of basic sql queries