Finalized database structure