Added parallel migrations

Fixed missing method

Added MigrationManager tests and fixed a bug in MigrationManager

Fix for Only variables should be passed by reference

Fixed migrationTableExists on sqlite