db1 = openDatabase(id, version, displayName,maxSize);
db1.transaction(function(transaction)
{
});
Inside the code make changes as the above.
Since there are two databases used here the first one is
Main database
and the second is
Project database
second db should has a different name.
This worked well for me..
[Edit member="Tadit"]
Corrected formatting issues.
Added
pre
tags.
[/Edit]