adapt access to the database so that it uses the new scheme