adding RGSOCApplication model, migrations and some model magic