contrib.datalog brought back to life