Ported: Database_Check