more logging in db repository and app.js