Fixed a regression in CBL_Attachment handling encoded attachments

(Caused during the ForestDB conversion; no need to back port to master.)
Fix db import SQLite error by defining a collation

SQLite seems to want the REVID collation to be defined for some reason,
even though it shouldn't need it, so I defined a bogus one.
Fixes #486 (I think; I couldn't reproduce it myself)