Some testing made, unuseful code removed; TODO: fix inserting sale_id and stockitem_id to every solditem entity item on database