adding database, rewriting tests, change in README