Fix #16483: custom field API after remmoval of db_prepare_int calls