Move API settings to user.rb
Drafting query.rb