-fixing throwing null if none of the persmission present in the table