Database Upgrade Handler

Db Handler upgraded to handle schema changes and tablet database
upgrades