Rename active_sql script and fix formatting