added interval in db