preparing a mysql plugin