read APVPhases params from DB

Backport of #3023 to 70X. Making use of #2912 from @venturia.