Implemented Business logic for print

Implemented business logic for print option and storing data to table.
#67