Added DB update after setting alarm