Despite starting and ending with the statement that everything is meaningless, Ecclesiastes has a deeper message