Save/Load edges to/from database