Broke out tie-in. SQL still needs to be removed as the plugin is broken at the moment