Complete database rewrite, one-time fetch, fetch of libraries name, rewrite of librariesadapter