Added Chats&Friends, created basic implementation of database