changed db to use regular edges instead of multi-edges