Master reconciliation and statement import ama

the problem here is that you read all the unique_import_ids of existing bank statement line, then use them to filter the st_vals['line_ids'], which seems a very expensive move: some companies may have several thousands of bank statement lines per day! 

Let's use a unique constraint and let psql deal internally with this.