Updated WTDatabase to accept completion block.