add buy transactions to database