set up to read from db