why David wanted to build the temple