Replaced many methods including openDB().