Fixes the external entity parsing and multi author problems. Also reshapes the database schema.