added database variable to edit, add and conflict pages