Fixed an update bug and added on deactivation to drop plugin tables (warning!)