Separeted SQL and HTML