Database script notice fix