database.py : add some debug for test only