Upload database with the first ManyToOne relationship on database