DB integration, login, save diary, view diary are finished.