Changes to db, added protect for uid 1