Serialize collection values within sql query correctly.