added script for collecting categories from db: a bug with encoding exists