MH-9202 -- added index definitions, primary and foreign keys, unified table and field naming

git-svn-id: http://opencast.jira.com/svn/MH/trunk@13824 e6edf6fb-f266-4316-afb4-e53d95876a76
MH-9434 - Added support for all subversions of 12.04. 


git-svn-id: http://opencast.jira.com/svn/MH/trunk@13825 e6edf6fb-f266-4316-afb4-e53d95876a76