Concept of accs and transactions in db