Add TransactionAbstract

Added abstract class for transaction abstract
Added database abstract