construct the sql statements instead of string placeholders