Update application/tasks/generate.php

This is forked version of 'generate task'.
This version supports automated migrations generation based on table structures and foreign constrains in external DB that's being imported (See application/import.php)