Rsbtb 1126 multilanguage addons22

adding foreign key support and fixing group by expressions