Fixed primary key issue where no future transactions could be made

Added a trans_id primary key
Changed get all transactions code to reflect new field