Lots of changes. Added DB support for Production tab.