fixing scope on database credentials inclusion