Copy in new DB if none exists; fixed bug in main

Also, create plugins folder if none exists