Separate concerns of library path and db file away from library.js itself