Fix problem with database pointer in parsedb.py