adding additional logging to dbm, adding reflection functions for adaptors, new build_models.php script for generating model files from the command line.