update database table names

change pages to articles
change subjects to categories