PM SQL tunning

We added the PM SQL tunning
Merge remote branch 'upstream/master' into pmsql
BUG 10396 Mensaje de Invalid Response al crear Dynaform SOLVED

- Missing validation when session is expired
- Add validation when session is expired
Merge pull request #1238 from julceslauhub/master

 BUG 10396 Mensaje de Invalid Response al crear Dynaform SOLVED
Merge pull request #1237 from brayanpereyra/pmsql

Pmsql we add DEL_LAST_INDEX
Merge pull request #1239 from julceslauhub/master

Add missing .sql file
Add missing .sql file
Add another missing file
Merge pull request #1240 from julceslauhub/master

Add another missing file
Installation error, 'Could not find db.php...'

The 'SYS_SYS' variable was taking 'workflow' as his value, when it has to take $workspace instead of it. In /engine/controllers/installer.php.