basic diamond mysql plugin