Add Rack mini

Refactor to lower query time noted by rack mini