No such table: MyTable: , while compiling: SELECT * FROM MyTable

After using
db.rawExecSQL(String.format(“ATTACH DATABASE ‘%s’ AS encrypted KEY ‘%s’”, path, passphrase));
db.rawExecSQL(“SELECT sqlcipher_export(‘encrypted’)”);
to encrypt a plain SQL DB, the resulting database cannot seem to find the exising tables in the DB. The size of the database is around 5120 bytes, and the plain database size was 112640 bytes. So clearly many tables have not been copied, I would expect the encrypted DB size to be larger.