fixed a few issues with updatedb.py