parses data object into SQL