Completely reorganized the way transactions and accounts were stored in the database.