Added database debug settings
Added debug log on database