Renamed private db var as _db for consistency.