Real time chat on PHP Codeigniter and MySQL