Add relation and database