<issue_start><issue_comment>Title: SQL Alchemy .scalar() raising exception if more than one row found
username_0: Sentiment tables have exposed a problem in query.scalar() implementation where if an identification key is found more than ?once(how)? an exception is raised.
<issue_comment>username_0: Modified db_api sentiment queries with try/except handling.  Seems to be working ok, but suddenly not catching any exceptions in logs. Counts increasing appropriately.  Exception does not bypass database writing operations, so insert/updates reaching database server.  Logging times and database monitoring also show significant latency, cpu activity, and IO/writes.<issue_closed>