rename db -> graph
simplify all facts searches