edited database question