Added sql queries