[c12631] Use uint32 for phaseMasks in core and database

Signed-off-by: Dramacydal <PulLumBerMal@gmail.com>
Merge pull request #1 from cmangos/master