Renamed site info helper to common queries and refactored app.rb