directly insert into proper table and not assume I have the rule right
another attempt at improvements and parse more stuff to db