Changed the way library and sqlplugin interact
  library initiates from database instead of folder