build_db.py: Add support for rowspan and colspan in tables