Renamed PieDb to Db to avoid namespace trouble