added dbConnection detection for User model and db type check

fixes a bug, where you were not able to run this migration with another --connectionID