Added database integration for users.