[c12631] Use uint32 for phaseMasks in core and database

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>