rename 'ports_db_path' to 'ports_db_prefix'
typo, comments
fix codingstyle
more fancy codestyling