Adds timout gem
Tuning db query