Replace ATTACH, SELECT, DETACH with sqlite3_key and sqlite3_rekey

@pdp - no, you can’t use sqlite3_rekey to encrypt a standard (plaintext) SQLite database. The only supported way to do that is via ATTACH and sqlcipher_export(). See here for more details: