added new function to get new messages from db, modified query in ChatMessagesRepository - removed  from query conditions, added api documentation