1.fix the save method: return the database's auto_inrement key