added checkDatabase api