Rework initialization of db sources for source attrs