build_db.py: Add weight, category, group, period and block properties