[sql] log table nits