changed setting for db to programatic reference
updated models.py and...probably some other stuff too. Maybe not. We'll see