Update rank permissions

TODO: Add support for more permissions in database (int or long)