can add transactions to the database
changed buy from boolean to integer. can now successfully and properly store transactions in the database and redirected to the transactions show page