Database: change to the column format to fix integer overflows