Updated plugin
 - Altered sql sheme
 -  Fixed some sql issues