Adds float cast to $vars['memory_usage'] on db insert of memory history