Correcting a databse link error

And making access to log files obligatory