Fixed referential constraints on userinfo and tracked_stock tables