Redid database structure