rename param
convert accesslog to insert statement using legacy db