Create and test basic sql queries