Updated database structure. Added basic functionality for user account validation.