Partial working tab feature

Includes fixes in database classes
Merge pull request #9 from vishal0071/master

Partial working tab feature