Fixed issue with creating new database failed

Added methods to created edges from models instances