adding database field size checks (#1233721)