Added uid field to setting model for normal mysql operation