Import improvements

The database import section wasn't working from the last update. Got it to work and corrected those lines.

Also went through and improved everything. Took out unnecessary variables being sent to functions, especially for items that can be calculated or done through another function from the parameters already being passed.

Improved the database import script to include remote databases and differences for WP databases vs others.

Signed-off-by: Chris Wilcoxson <chris@slushman.com>