Fix db insertion error when admin is on