pass the database through as a parameter when needed
Fix broken references to database in people.py