modified db access