php chat with ajax and pdo