Added database initialization and account struct