Function for adding new ranks.
Add functions for all tables. (Most of them not tested, but they should be correct)