Have register saving to db