[ticket/11201] Add database column type to type class

PHPBB3-11201
[ticket/11201] Move "get type" code into a new function

PHPBB3-11201
[ticket/11201] Use database type from the type class

PHPBB3-11201