Ugly, but working proof of concept for refreshing the library data on startup