Update buttons in User and Lab to show devices count, add default and null conditions to lock_version of devices and devices_count to labs table