build_db.py: Merge getAllProperty and getProperty