The database queries and design document