Extract database setup/schema to models.py to conform to MVC framework.