Use null? instead of length.

For performance, correctness.
Refactor macs to module. Add make-global-parameter.
Clean up some parameters.
Add db setup interface.
Use new macs instead of old one.
Fix bug that was causing the wrong value to be returned.
Add db-interface tests.
Add macs tests.