database alert script