Fix db column-size bug for large uploads. Fixes #945