fix indentation & added charset
remove figaro in favour of dotenv-rails
collapse 1+n record query