MAINT: Refactor loading CF from database
@jinchang this is the temp fix I'm proposing: Allow missing CF values in the database to be 0.0. I'm not 100% why this is happening, but I suggest we dive deeper into that when there's a bit more time.
This was fixed in !413 (merged), but parts of this refactor are still useful.
Edited by Alexander Tygesen