sqlite ATTACH DATABASE

Al Mungall's icon

I'd like to separate my data int two separate databases, but attempting to link the second using :

sqlite.exec("ATTACH DATABASE '" + databaseName + "' AS 'theOtherOne';", result);

... isn't working for me. I get error, "sqlite: error opening db - unable to open database file"

Is this sqlite functionality available with Max (I have latest Max 8)?