added script to prepate lists for sql statements