Move DB conversion tools into installer and refactor accordingly