Database: fixed Selection::ref() data invalidation. Thanks @JanTvrdik & @Eda
Database: removed useless condition
Database: load previousAccessedColumns just one time if it's null