Implemented direct messages API, DB and tests