added flags to update function

credits to @BVBPOWER
added new flag icons
deleted doublicated flag (gb) and adapted update/insert/delete stmts