Added pln_state column, renamed state column to processing_state in deposits table; converted SQL in get_deposits() to use a dict cursor.