CYB-352 Return DB connections to the pool after done with using raw SQL

 * use a block yielding to the execution statement so that the connection is only used
   within said block
 * decrease sidekiq concurrency, so fewer connections are used at once.

https://jira.ets.berkeley.edu/jira/browse/CYB-352
Merge pull request #210 from coyote/sql_get_gallery_data

CYB-352 Return DB connections to the pool after done with using raw SQL