Test Database with checks