Delete periodic function in database