Preparing DB for the app.