Added all basic queries. TODO some error handling