Fix active_sql format