Fix#2 empty array in DatabaseStatements to_sql method