Fix some bugs in databaseprobe :