Fixes for db_restore script

fixed sql vulnerability
fixed undefined index
fixed missing info string with shortcodes
fixed error logging