3.6.10 - improves index undefined

- Wasn't put on sugarforge in this exact state.
- partial refactor to "AnyDB"
- db_print_log_table