Fix default config file, also rearrange SQL statements so they actually run