Another major refactoring of the database code
Introduced UserHeader