Update admins.py

added commit statements to prevent ourselves from locking out of the database.