Add DB entity save
fix
merge, add register and login