cmake: readded database sources to fix Windows builds