Using DB specific "drop constraint" commands. Adding error logging.
Added indexes on foreign keys and some often queried columns
Commented SQL logging

Signed-off-by: morpheusxx <morpheus_xx@team-mediaportal.com>
Fixed merge error
Merge branch 'EXP-TVE3.5-MP1-MP2-OPTIMIZATION' into EXP-TVE3.5_SEB_MERGE_Testing_Only