Bugs fixes for Trello 174/184. Fixes for not killing the database buy returning 32k records into a session.