Refactor parser.py and delete database.py modules under every dq subdirectory.