added relation to database