Use standard 8k-buffer to copy databases

The original implementation was doing an unbuffered bytewise copy.
Merge pull request #226 from vonloxley/Perf1

Perf1