public void SetAvailibility(DeviceInfo device, bool availible)
{
var conn = new SqlConnection(_connectionString);
conn.Open();
var sql = new SqlCommand(string.Format("exec mob_set_availibility '{0}', {1}", device.UniqueId, availible ? 1 : 0), conn);
sql.ExecuteNonQuery();
conn.Close();
}