Only set database value when not zero, otherwise unnecessary `SELECT` calls result