cache the db adapter