DB Classes and few changes in login.