db-stuff is partially tested