Fix tab active to real tab active
Fix: sql syntax errors
Fix: sql errors into migration scripts
Fix: error with php strict mode