Added a new table for keeping user money info, this led to some
optimization in code. Sorting tables implemented.