DatabaseScheduler: Keep expires option expressed in either seconds count or datetime.

This should fix #269