Changed deduction w/ rel to database