def getTitles(db):
	"""
	Gets all the books titles in the whole database
	:param db: database object
	:return: sorted books titles

	"""

	data = []
	for book in db.find('books'):
		data.append(book['Title'])

	return sorted(data)