Move database initialization out of account models