fix values to be usefull with both insert and update in db_q