revised database application