changed getData so it is only called on start up of chat, less sql queries