Limit open connections; add sensible index; enable logging. Addresses #21
Merge pull request #28 from marcesher/bad_connection

Import: bad connection. Addresses #21