Added last Queries and View creation functions