added db models and save for registration