Fix code db entry
Establish relationships between users and codes
Add user_type and admin dashboard to header