add getAllContacts method, edit finally block, add rollback for transaction