Some code written down in depositor section, DB wrapper adjusted, code refactored, todos updated, API mechanism adjusted.