Method for searching by primary keys
Exception printing
Optimizing