Fix db_clause_not_empty() problems found in unit test.
Add coverage for db_clause/db_clause_list and create a generic fake_pointer to use in most tests