Cleaned up script, now imports wrappers and database types at runtime, instead of hardcoding