filter the click source, create db script