I'm not sure exactly what you mean by "the size of the blockchain database". If you mean the space taken on disk, you can use standard file system tools for this, like du on Linux. If you mean the total size of the blocks in the chain, use listblocks with verbose=true to get the size of each block, and add them up. Or did you mean something else?