Change the way we connect to the databse

Can you rename `database` to `_database`? This would make it more obvious that one is not supposed to use this variable outside of db.py.