fold the python scripts into the vim script, support database rebuilds