Add functionality added to supplier dialog

Add function adds into database with ID = MaxID+1