Fleshed out the getTransaction() function. Still need to test if these functions read/write to the database correctly.