upgrade all tables
database object
old version of database
new version of database
If database version changed, the class will recreate database tables automatically