make mysql tied to plugin