change DB sensor table name -> type to name