add relation to database