Fix model declaration and initializedb.py.