The save command in Line 37 is not working, It can print the Primary Key , but not save a new record to the database.
template save command
Git hub link - http