Enh add select generator

with tests fixed.  And travis also fixed (was disabled/forced to success previously) !

Also spotted a last prob in module.py itself (with commit_and_rotate_log_db()).