Fix bug: optimize database tables for Maintenance extension