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>