use database to query articles + categories