fixed dropForeignKey for MySQL
fixed inserts with NULL