Create the wrapper given a db instance