Added sql queries.