db

Bug fixed. Add history tables. Add cascade deleting to TRANSACTIONS. Add
isLoked field.