database complete scheme