change scope of db connection