Added connection using Entity, pagination