switch to using integer from embedded system. Update INSERT for mariadb
use http