change get() method to also accept int (the primary key), not only array for where.