Add limit time API
Refactoring
Add active flag to room table