updated for mysql plugin
updated for mysql plugin