added more tests and updated database test with repeating transactions
added more tests