insertUser() and chat class added