Added sql views for library