Refactored sqlite database creation into shared package.