fixing list in sql post