Added transactions to database, fixed 'ammount' type