Use a database with data

Hello, I have a problem, I want a database with dates, I saw the code and supposed to

this.sql = new Storage(SqlStorage, {name: “my.db”, existingDatabase: true});

I can use my.db with my data, but when I do:

  this.sql.query("SELECT * FROM test").then((data) => {
    console.log('select');
    }, (error) => {
        console.log(JSON.stringify(error.err));
  });

in have:
{“code”:5,“message”:“no such table: test”}

This is in the ios emulator and ios device. (The file my.db is in www folder)

Any help?

Thanks and sorry for my english :S