Fixing sql string formatting and added limit to the size of info property