Fix DB_BIGINT support and unused vars.