Enabled package restore
Moved database creation out of the library and removed WithKey