Fixed referential constraints on userinfo and tracked_stock tables

Please run ant wipedb before running application if using permanent db option. This will update your database with required changes. If currently using inmemory db option, please ignore.