add a exception in selectPasswordById