added database tests, (database related stuff is in SQLite)