first version sql string