Clean app system + change app_settings to settings and uid as id