Fixed a logical issue with the coglet.
Added check to not do any database call if not necessary.